import request from '../utils/request'
// 获取歌曲信息
// http://www.codeman.ink:3000/song/url?id=26598766
// ttp://www.codeman.ink:3000/lyric?id=26598766
// http://www.codeman.ink:3000/comment/hot?id=26598766&limit=10&type=0&timestamp=1638261292000
// http://www.codeman.ink:3000/comment/music?id=26598766&offset=0&timestamp=1638261292000

// song/detail?ids=1392761462
// 获取歌曲图片以及名称信息
export const getmusicInfo = (data) => {
    return request({
        method: 'get',
        url: `/song/detail`,
        params: data
    })
}

// 获取歌曲歌词信息
export const getmusicLyric = (data) => {
    return request({
        method: 'get',
        url: '/lyric',
        params: data
    })
}

// 获取歌曲评论
export const getMusicComment = (data) => {
    return request({
        method: 'get',
        url: '/comment/new',
        params: data
    })
}

// 获取歌曲URl
export const getMusicUrl = (data) => {
    return request({
        method: 'get',
        url: '/song/url',
        params: data
    })
}